﻿@model IEnumerable<sBlog.Net.Domain.Entities.PostEntity>
<div id="section1" class="menu" style="background-color: #f0efef;">
    <div style="float: left; background-color: #f0efef; height: 30px; margin-top: 5px;">
        <img src="@Url.Content("~/Content/Images/MlogThem/mlog-quote-icon.png")" width="22" height="15" alt="blash"/>&nbsp;&nbsp;
    </div>
    <h2>
        mlog mới cập nhật</h2>
    <div style="clear: both;">
    </div>
    <ul style="list-style-type: square; margin-left: 15px;">
        @foreach (var post in Model)
        {
            <li>
                @{
            var url = Url.RouteUrl("IndividualPost", new { year = post.PostYear, month = post.PostMonth, url = post.PostUrl, status = string.Empty });
            var shortTitle = post.PostTitle.Length > 50 ? string.Format("{0}...", post.PostTitle.Substring(0, 50)) : post.PostTitle;
                }
                <a href="@url" title="@post.PostTitle" class="titleNewPost">@shortTitle</a>
            </li>
        }
    </ul>
</div>
